﻿<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="static/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.min.css" />
<link rel="stylesheet" type="text/css" href="static/css/style.css" />
<!--[if lt IE 9]>
<link href="static/css/H-ui.ie.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>管理员登录</title>
<meta name="keywords" content="关键词,5个左右,单个8汉字以内">
<meta name="description" content="网站描述，字数尽量空制在80个汉字，160个字符以内！">
</head>
<body ontouchstart>
<img class="background-img" src="http://cdn13.mudu.tv/assets/upload/147070877352480.png" alt="">
<div class="managerlogin-wrap">
	<div class="loginbox">
		<div class="login-cover-wrap">
			<span></span>
			<img src="http://cdn13.mudu.tv/assets/upload/147070875483629.png" alt="">
		</div>
		<img src="static/images/web/shadow.png" alt="" class="shadow-img">
		<div class="login-input-wrap">
			<p class="clearfix"><span>用户名:</span><input type="text" name="email"></p>
			<p class="clearfix"><span>密&nbsp;码:</span><input type="password" name="password"></p>
			<p class="captcha clearfix">
				<span>安全验证:</span>
				<input type="text" name="captcha">
				<img src="https://www.tkkks.com/admin/Admin/vertify" id="captchaimg" >
			</p>
			<p class="error-tip clearfix"></p>
			<span id="login" class="login-btn">登录</span>
		</div>
	</div>
</div>

<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="lib/jquery-ui/1.9.1/jquery-ui.min.js"></script>
<script type="text/javascript" src="static/js/H-ui.js"></script>
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
<script type="text/javascript">
	
		//刷新验证码
		$(document).on('click','#captchaimg',function(){
			$("#captchaimg").attr('src','/admin/captcha.php' + append);
		});

		$('input[name="authCode"]').keydown(function(e) {
			if(e.keyCode == 13){
				$('#login').trigger('click');
			}
		})
		$(document).on('click','#login',function(){
			var email = $('input[name="email"]').val(),
				password = $('input[name="password"]').val(),
				captcha = $('input[name="captcha"]').val();
			if (email=='') {
				return layer.msg('请输入用户名');
			}
			if (password=='') {
				return layer.msg('请输入密码');
			}
			if (captcha=='') {
				return layer.msg('请输入安全验证码');
			}
			$.post('/?c=session&a=login',{email:email,password:password,captcha:captcha},function(data){
				if(data.status == 'y'){
					$('.error-tip').text();
					location.href = "/console";
				}else {
					
				}
			},'json')
		});
	
</script>
</body>
</html>
